<?php

class Security
{
    public static $error;

    const EMAIL_PREG = '##';

    const PHONE_PREG = '##';

    public $errors;

    /**
     * 才发现php自带了邮箱验证，我们这里只需使用php自带的就好
     * @param $email
     * @return mixed
     */
    public function isEmail($email)
    {
        return filter_var($email, FILTER_VALIDATE_EMAIL);
    }
}